﻿using DirectSell.Model.Bonus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Webdiyer.WebControls.Mvc;

namespace Direct.IDAL.User.Bonus
{
    /// <summary>
    /// 奖金列表仓储接口
    /// </summary>
    public interface IBonusRepository:IAbsRepository
    {
        /// <summary>
        /// 查奖金列表
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        Task<PagedList<MemberBonus>> QueryBonusList(int userid, int PageIndex, int PageSize);
        /// <summary>
        /// 查一条奖金
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        MemberBonus QueryBonus(int id);
        /// <summary>
        /// 查总奖金视图
        /// </summary>
        /// <param name="usercode"></param>
        /// <returns></returns>
        MemberBonus QuerySumBonus(string usercode);
    }
}
